﻿using Fast;
using Microsoft.AspNetCore.Mvc.Filters;

namespace Microsoft.Extensions.DependencyInjection
{
    [SkipScan]
    public static class NormalizeActionResultServiceCollectionExtensions
    {
        /// <summary>
        /// 添加规范化返回结果
        /// </summary>
        /// <param name="services"></param>
        /// <returns></returns>
        public static IServiceCollection AddNormalizeActionResult(this IServiceCollection services)
        {
            services.AddMvcFilter<NormalizeActionResultFilter>();

            return services;
        }
    }
}
